<?php
/**
 * Created by PhpStorm.
 * User: guokunsheng
 * Date: 2020/10/12
 * Time: 18:04
 */
namespace app\astrologer\model;

use think\Model;

/**
 * 占星师任务数据模型
 * Class Task
 * @support v1.0.0
 */
class Task extends Model
{
//    protected $table = 'wechat_backup_07_18_14_43_00.';

    /**
     * 获取占星师历史任务列表
     */
    public function fetchList()
    {
        try
        {
            $data = $this->where([])->paginate(10, false, ['page' => 1])->toArray();
        }
        catch (\Exception $e)
        {
            $data = [];
        }
        return $data;
    }
}
